import request, {sign} from '@/utils/request';
const obj = {};

obj.addAndUpdate = function (data) {
  return request({
    url: `${sign}/customer/addAndUpdate`,
    method: 'post',
    data
  });
};

obj.list = function (params) {
  return request({
    url: `${sign}/customer/list`,
    method: 'get',
    params
  });
};

obj.delete = function (data) {
  return request({
    url: `${sign}/customer/delete`,
    method: 'post',
    data
  });
};

obj.SetMealDetailFunctionList = function (params) {
  return request({
    url: `${sign}/customer/SetMealDetailFunctionList`,
    method: 'get',
    params
  });
};


export default obj;
